#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;

int n, a[N], x, y, sum;
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin >> n;
    for (int i = 0; i < n; i++)
        cin >> a[i];
    sort(a, a + n);
    x = 0, y = 1;
    while (y < n) {
        if (a[x] < a[y])
            x++, y++, sum++;
        else
            y++;
    }
    cout << n - sum << endl;
    return 0;
}